<nz-tag
  *ngFor="let tag of tags; let i = index"
  [nzMode]="i > 0 ? 'closeable' : 'default'"
>
  {{ sliceTag(tag) }}
</nz-tag>
<span style="width: 200px; display: inline-block">
  <button nz-button nzBlock (click)="showInput()" *ngIf="!inputVisible">
    New Tag
  </button>
  <input
    #inputEl
    *ngIf="inputVisible"
    nz-input
    [(ngModel)]="inputValue"
    (keydown.enter)="addTagFromInput()"
    (keydown.esc)="inputVisible = false"
    (blur)="addTagFromInput()"
  />
</span>
